﻿using System.Web;
using System.Web.Mvc;
using UI.Filter;

namespace UI
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new HandleErrorAttribute());
            filters.Add(new LogExceptionFilter());//升级成自定义的异常扩展
            filters.Add(new AuthorityFilterAttribute());//升级成自定义的异常扩展
        }
    }
}
